/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openbrew.openbrewrf;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import org.eclipse.persistence.annotations.CascadeOnDelete;
import tools.Encrypter;

/**
 *
 * @author chapmand
 */
@Entity
@Table(name = "Administration")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Administration.findAll", query = "SELECT a FROM Administration a"),
    @NamedQuery(name = "Administration.findByANum", query = "SELECT a FROM Administration a WHERE a.aNum = :aNum"),
    @NamedQuery(name = "Administration.findByBreweryName", query = "SELECT a FROM Administration a WHERE a.breweryName = :breweryName"),
    @NamedQuery(name = "Administration.findByBreweryStreetAddress", query = "SELECT a FROM Administration a WHERE a.breweryStreetAddress = :breweryStreetAddress"),
    @NamedQuery(name = "Administration.findByBreweryCity", query = "SELECT a FROM Administration a WHERE a.breweryCity = :breweryCity"),
    @NamedQuery(name = "Administration.findByBreweryState", query = "SELECT a FROM Administration a WHERE a.breweryState = :breweryState"),
    @NamedQuery(name = "Administration.findByBreweryCounty", query = "SELECT a FROM Administration a WHERE a.breweryCounty = :breweryCounty"),
    @NamedQuery(name = "Administration.findByBreweryZipCode", query = "SELECT a FROM Administration a WHERE a.breweryZipCode = :breweryZipCode"),
    @NamedQuery(name = "Administration.findByBreweryPhoneNumber", query = "SELECT a FROM Administration a WHERE a.breweryPhoneNumber = :breweryPhoneNumber"),
    @NamedQuery(name = "Administration.findByBreweryEIN", query = "SELECT a FROM Administration a WHERE a.breweryEIN = :breweryEIN"),
    @NamedQuery(name = "Administration.findByBreweryTTBNumber", query = "SELECT a FROM Administration a WHERE a.breweryTTBNumber = :breweryTTBNumber"),
    @NamedQuery(name = "Administration.findByBreweryStateNumber", query = "SELECT a FROM Administration a WHERE a.breweryStateNumber = :breweryStateNumber"),
    @NamedQuery(name = "Administration.findByBreweryEmail", query = "SELECT a FROM Administration a WHERE a.breweryEmail = :breweryEmail"),
    @NamedQuery(name = "Administration.findByBreweryWebsite", query = "SELECT a FROM Administration a WHERE a.breweryWebsite = :breweryWebsite"),
    @NamedQuery(name = "Administration.findByBillingEmail", query = "SELECT a FROM Administration a WHERE a.billingEmail = :billingEmail"),
    @NamedQuery(name = "Administration.findByBillingEmailPass", query = "SELECT a FROM Administration a WHERE a.billingEmailPass = :billingEmailPass"),
    @NamedQuery(name = "Administration.findBySMTPAuth", query = "SELECT a FROM Administration a WHERE a.sMTPAuth = :sMTPAuth"),
    @NamedQuery(name = "Administration.findBySMTPStartTls", query = "SELECT a FROM Administration a WHERE a.sMTPStartTls = :sMTPStartTls"),
    @NamedQuery(name = "Administration.findBySMTPAddress", query = "SELECT a FROM Administration a WHERE a.sMTPAddress = :sMTPAddress"),
    @NamedQuery(name = "Administration.findBySMTPPort", query = "SELECT a FROM Administration a WHERE a.sMTPPort = :sMTPPort"),
    @NamedQuery(name = "Administration.findByBillingEmailSubject", query = "SELECT a FROM Administration a WHERE a.billingEmailSubject = :billingEmailSubject"),
    @NamedQuery(name = "Administration.findByNotifyOnLowInv", query = "SELECT a FROM Administration a WHERE a.notifyOnLowInv = :notifyOnLowInv"),
    @NamedQuery(name = "Administration.findByInvEmail", query = "SELECT a FROM Administration a WHERE a.invEmail = :invEmail"),
    @NamedQuery(name = "Administration.findByInvPrintOut", query = "SELECT a FROM Administration a WHERE a.invPrintOut = :invPrintOut"),
    @NamedQuery(name = "Administration.findByInvLabel", query = "SELECT a FROM Administration a WHERE a.invLabel = :invLabel"),
    @NamedQuery(name = "Administration.findByInvKegList", query = "SELECT a FROM Administration a WHERE a.invKegList = :invKegList"),
    @NamedQuery(name = "Administration.findByEnableScan", query = "SELECT a FROM Administration a WHERE a.enableScan = :enableScan"),
    @NamedQuery(name = "Administration.findByEnableMRP", query = "SELECT a FROM Administration a WHERE a.enableMRP = :enableMRP"),
    @NamedQuery(name = "Administration.findByEnableTRScanCheck", query = "SELECT a FROM Administration a WHERE a.enableTRScanCheck = :enableTRScanCheck"),
    @NamedQuery(name = "Administration.findByCoTax", query = "SELECT a FROM Administration a WHERE a.coTax = :coTax"),
    @NamedQuery(name = "Administration.findByFedTax", query = "SELECT a FROM Administration a WHERE a.fedTax = :fedTax"),
    @NamedQuery(name = "Administration.findByKegPrefix", query = "SELECT a FROM Administration a WHERE a.kegPrefix = :kegPrefix"),
    @NamedQuery(name = "Administration.findByBGoogleCal", query = "SELECT a FROM Administration a WHERE a.bGoogleCal = :bGoogleCal"),
    @NamedQuery(name = "Administration.findByBPlato", query = "SELECT a FROM Administration a WHERE a.bPlato = :bPlato"),
    @NamedQuery(name = "Administration.findByBQAEnable", query = "SELECT a FROM Administration a WHERE a.bQAEnable = :bQAEnable")})
public class Administration implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ANum")
    private Integer aNum;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 50)
    @Column(name = "BreweryName")
    private String breweryName;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 50)
    @Column(name = "BreweryStreetAddress")
    private String breweryStreetAddress;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 50)
    @Column(name = "BreweryCity")
    private String breweryCity;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 50)
    @Column(name = "BreweryState")
    private String breweryState;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 50)
    @Column(name = "BreweryCounty")
    private String breweryCounty;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 10)
    @Column(name = "BreweryZipCode")
    private String breweryZipCode;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 20)
    @Column(name = "BreweryPhoneNumber")
    private String breweryPhoneNumber;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 20)
    @Column(name = "BreweryEIN")
    private String breweryEIN;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 20)
    @Column(name = "BreweryTTBNumber")
    private String breweryTTBNumber;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 20)
    @Column(name = "BreweryStateNumber")
    private String breweryStateNumber;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 100)
    @Column(name = "BreweryEmail")
    private String breweryEmail;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 100)
    @Column(name = "BreweryWebsite")
    private String breweryWebsite;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 40)
    @Column(name = "billingEmail")
    private String billingEmail;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 40)
    @Column(name = "billingEmailPass")
    private String billingEmailPass;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SMTPAuth")
    private boolean sMTPAuth;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SMTPStartTls")
    private boolean sMTPStartTls;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 100)
    @Column(name = "SMTPAddress")
    private String sMTPAddress;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 10)
    @Column(name = "SMTPPort")
    private String sMTPPort;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 100)
    @Column(name = "BillingEmailSubject")
    private String billingEmailSubject;
    @Basic(optional = false)
    @NotNull
    @Lob
    @Size(min = 0, max = 65535)
    @Column(name = "BillingEmailBody")
    private String billingEmailBody;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NotifyOnLowInv")
    private boolean notifyOnLowInv;
    @Basic(optional = false)
    @NotNull
    @Column(name = "invEmail")
    private boolean invEmail;
    @Basic(optional = false)
    @NotNull
    @Column(name = "invPrintOut")
    private boolean invPrintOut;
    @Basic(optional = false)
    @NotNull
    @Column(name = "invLabel")
    private boolean invLabel;
    @Basic(optional = false)
    @NotNull
    @Column(name = "invKegList")
    private boolean invKegList;
    @Basic(optional = false)
    @NotNull
    @Column(name = "enableScan")
    private boolean enableScan;
    @Basic(optional = false)
    @NotNull
    @Column(name = "enableMRP")
    private boolean enableMRP;
    @Basic(optional = false)
    @NotNull
    @Column(name = "enableTRScanCheck")
    private boolean enableTRScanCheck;
    @Basic(optional = false)
    @NotNull
    @Column(name = "coTax")
    private float coTax;
    @Basic(optional = false)
    @NotNull
    @Column(name = "fedTax")
    private float fedTax;
    @Basic(optional = false)
    @NotNull
    @Lob
    @Column(name = "headerImg")
    private byte[] headerImg;
    @Basic(optional = false)
    @NotNull
    @Lob
    @Column(name = "footerImg")
    private byte[] footerImg;
    @Size(max = 10)
    @Column(name = "kegPrefix")
    private String kegPrefix;
    @Basic(optional = false)
    @NotNull
    @Column(name = "bGoogleCal")
    private boolean bGoogleCal;
    @Basic(optional = false)
    @NotNull
    @Column(name = "bPlato")
    private boolean bPlato;
    @Basic(optional = false)
    @NotNull
    @Column(name = "bQAEnable")
    private boolean bQAEnable;
    @Basic(optional = false)
    @NotNull
    @Column(name = "bPOS")
    private boolean bPOS;
    @Basic(optional = false)
    @NotNull
    @Column(name = "systemSize")
    private float systemSize;
    @Basic(optional = false)
    @NotNull
    @Column(name = "distKegDeposit")
    private float distKegDeposit;
    @Basic(optional = false)
    @NotNull
    @Column(name = "nonDistKegDeposit")
    private float nonDistKegDeposit;
    @JoinColumn(name = "BillingEmp", referencedColumnName = "EmpID", nullable=true)
    @ManyToOne(optional = true)
    private Employee billingEmp;
    @JoinColumn(name = "SalesEmp", referencedColumnName = "EmpID", nullable=true)
    @ManyToOne(optional = true)
    private Employee salesEmp;
    @JoinColumn(name = "apEmp", referencedColumnName = "EmpID", nullable=true)
    @ManyToOne(optional = true)
    private Employee apEmp;
    @JoinColumn(name = "trCust", referencedColumnName = "CId", nullable=true)
    @ManyToOne(optional = true)
    private Customer trCust;
    @OneToMany(cascade=CascadeType.ALL, orphanRemoval = true)
    @CascadeOnDelete
    @JoinTable(
        name="JTAdminToLabType",
        joinColumns={ @JoinColumn(name="ANum", referencedColumnName="ANum")},
        inverseJoinColumns={ @JoinColumn(name="labTypeID", referencedColumnName="labTypeID", unique=true)}
    )
    private List<LabType> labTypeCollection;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ca")
    private float ca;
    @Basic(optional = false)
    @NotNull
    @Column(name = "mg")
    private float mg;
    @Basic(optional = false)
    @NotNull
    @Column(name = "na")
    private float na;
    @Basic(optional = false)
    @NotNull
    @Column(name = "so4")
    private float so4;
    @Basic(optional = false)
    @NotNull
    @Column(name = "cl")
    private float cl;
    @Basic(optional = false)
    @NotNull
    @Column(name = "co3")
    private float co3;
    @Basic(optional = false)
    @NotNull
    @Column(name = "daysForPO")
    private int daysForPO;
    @OneToMany(cascade=CascadeType.ALL, orphanRemoval = true)
    @CascadeOnDelete
    @JoinTable(
        name="JTAdminToCBS",
        joinColumns={ @JoinColumn(name="ANum", referencedColumnName="ANum")},
        inverseJoinColumns={ @JoinColumn(name="CBSID", referencedColumnName="CBSID", unique=true)}
    )
    private List<CommonBrewSupplies> cbsCollection;

    public Administration() {
    }

    public Administration(Integer aNum) {
        this.aNum = aNum;
    }

    public Administration(Integer aNum, String breweryName, String breweryStreetAddress, String breweryCity, String breweryState, String breweryCounty, String breweryZipCode, String breweryPhoneNumber, String breweryEIN, String breweryTTBNumber, String breweryStateNumber, String breweryEmail, String breweryWebsite, String billingEmail, String billingEmailPass, boolean sMTPAuth, boolean sMTPStartTls, String sMTPAddress, String sMTPPort, String billingEmailSubject, String billingEmailBody, boolean notifyOnLowInv, boolean invEmail, boolean invPrintOut, boolean invLabel, boolean invKegList, boolean enableScan, boolean enableMRP, boolean enableTRScanCheck, float coTax, float fedTax, byte[] headerImg, byte[] footerImg, boolean bGoogleCal, boolean bPlato, boolean bQAEnable) {
        this.aNum = aNum;
        this.breweryName = breweryName;
        this.breweryStreetAddress = breweryStreetAddress;
        this.breweryCity = breweryCity;
        this.breweryState = breweryState;
        this.breweryCounty = breweryCounty;
        this.breweryZipCode = breweryZipCode;
        this.breweryPhoneNumber = breweryPhoneNumber;
        this.breweryEIN = breweryEIN;
        this.breweryTTBNumber = breweryTTBNumber;
        this.breweryStateNumber = breweryStateNumber;
        this.breweryEmail = breweryEmail;
        this.breweryWebsite = breweryWebsite;
        this.billingEmail = billingEmail;
        this.billingEmailPass = billingEmailPass;
        this.sMTPAuth = sMTPAuth;
        this.sMTPStartTls = sMTPStartTls;
        this.sMTPAddress = sMTPAddress;
        this.sMTPPort = sMTPPort;
        this.billingEmailSubject = billingEmailSubject;
        this.billingEmailBody = billingEmailBody;
        this.notifyOnLowInv = notifyOnLowInv;
        this.invEmail = invEmail;
        this.invPrintOut = invPrintOut;
        this.invLabel = invLabel;
        this.invKegList = invKegList;
        this.enableScan = enableScan;
        this.enableMRP = enableMRP;
        this.enableTRScanCheck = enableTRScanCheck;
        this.coTax = coTax;
        this.fedTax = fedTax;
        this.headerImg = headerImg;
        this.footerImg = footerImg;
        this.bGoogleCal = bGoogleCal;
        this.bPlato = bPlato;
        this.bQAEnable = bQAEnable;
    }

    public Integer getANum() {
        return aNum;
    }

    public void setANum(Integer aNum) {
        this.aNum = aNum;
    }

    public String getBreweryName() {
        return breweryName;
    }

    public void setBreweryName(String breweryName) {
        this.breweryName = breweryName;
    }

    public String getBreweryStreetAddress() {
        return breweryStreetAddress;
    }

    public void setBreweryStreetAddress(String breweryStreetAddress) {
        this.breweryStreetAddress = breweryStreetAddress;
    }

    public String getBreweryCity() {
        return breweryCity;
    }

    public void setBreweryCity(String breweryCity) {
        this.breweryCity = breweryCity;
    }

    public String getBreweryState() {
        return breweryState;
    }

    public void setBreweryState(String breweryState) {
        this.breweryState = breweryState;
    }

    public String getBreweryCounty() {
        return breweryCounty;
    }

    public void setBreweryCounty(String breweryCounty) {
        this.breweryCounty = breweryCounty;
    }

    public String getBreweryZipCode() {
        return breweryZipCode;
    }

    public void setBreweryZipCode(String breweryZipCode) {
        this.breweryZipCode = breweryZipCode;
    }

    public String getBreweryPhoneNumber() {
        return breweryPhoneNumber;
    }

    public void setBreweryPhoneNumber(String breweryPhoneNumber) {
        this.breweryPhoneNumber = breweryPhoneNumber;
    }

    public String getBreweryEIN() {
        return breweryEIN;
    }

    public void setBreweryEIN(String breweryEIN) {
        this.breweryEIN = breweryEIN;
    }

    public String getBreweryTTBNumber() {
        return breweryTTBNumber;
    }

    public void setBreweryTTBNumber(String breweryTTBNumber) {
        this.breweryTTBNumber = breweryTTBNumber;
    }

    public String getBreweryStateNumber() {
        return breweryStateNumber;
    }

    public void setBreweryStateNumber(String breweryStateNumber) {
        this.breweryStateNumber = breweryStateNumber;
    }

    public String getBreweryEmail() {
        return breweryEmail;
    }

    public void setBreweryEmail(String breweryEmail) {
        this.breweryEmail = breweryEmail;
    }

    public String getBreweryWebsite() {
        return breweryWebsite;
    }

    public void setBreweryWebsite(String breweryWebsite) {
        this.breweryWebsite = breweryWebsite;
    }

    public Employee getBillingEmp() {
        return billingEmp;
    }

    public void setBillingEmp(Employee billingEmp) {
        if(billingEmp.getEmpID()!=null){
            this.billingEmp = billingEmp;
        }
    }

    public Employee getSalesEmp() {
        return salesEmp;
    }

    public void setSalesEmp(Employee salesEmp) {
        if(salesEmp.getEmpID()!=null){
            this.salesEmp = salesEmp;
        }
    }

    public String getBillingEmail() {
        return billingEmail;
    }

    public void setBillingEmail(String billingEmail) {
        this.billingEmail = billingEmail;
    }

    public String getBillingEmailPass() {
        return billingEmailPass;
    }

    public void setBillingEmailPass(String billingEmailPass) {
        this.billingEmailPass = billingEmailPass;
    }

    public boolean getSMTPAuth() {
        return sMTPAuth;
    }

    public void setSMTPAuth(boolean sMTPAuth) {
        this.sMTPAuth = sMTPAuth;
    }

    public boolean getSMTPStartTls() {
        return sMTPStartTls;
    }

    public void setSMTPStartTls(boolean sMTPStartTls) {
        this.sMTPStartTls = sMTPStartTls;
    }

    public String getSMTPAddress() {
        return sMTPAddress;
    }

    public void setSMTPAddress(String sMTPAddress) {
        this.sMTPAddress = sMTPAddress;
    }

    public String getSMTPPort() {
        return sMTPPort;
    }

    public void setSMTPPort(String sMTPPort) {
        this.sMTPPort = sMTPPort;
    }

    public String getBillingEmailSubject() {
        return billingEmailSubject;
    }

    public void setBillingEmailSubject(String billingEmailSubject) {
        this.billingEmailSubject = billingEmailSubject;
    }

    public String getBillingEmailBody() {
        return billingEmailBody;
    }

    public void setBillingEmailBody(String billingEmailBody) {
        this.billingEmailBody = billingEmailBody;
    }

    public boolean getNotifyOnLowInv() {
        return notifyOnLowInv;
    }

    public void setNotifyOnLowInv(boolean notifyOnLowInv) {
        this.notifyOnLowInv = notifyOnLowInv;
    }

    public boolean getInvEmail() {
        return invEmail;
    }

    public void setInvEmail(boolean invEmail) {
        this.invEmail = invEmail;
    }

    public boolean getInvPrintOut() {
        return invPrintOut;
    }

    public void setInvPrintOut(boolean invPrintOut) {
        this.invPrintOut = invPrintOut;
    }

    public boolean getInvLabel() {
        return invLabel;
    }

    public void setInvLabel(boolean invLabel) {
        this.invLabel = invLabel;
    }

    public boolean getInvKegList() {
        return invKegList;
    }

    public void setInvKegList(boolean invKegList) {
        this.invKegList = invKegList;
    }

    public boolean getEnableScan() {
        return enableScan;
    }

    public void setEnableScan(boolean enableScan) {
        this.enableScan = enableScan;
    }

    public boolean getEnableMRP() {
        return enableMRP;
    }

    public void setEnableMRP(boolean enableMRP) {
        this.enableMRP = enableMRP;
    }

    public boolean getEnableTRScanCheck() {
        return enableTRScanCheck;
    }

    public void setEnableTRScanCheck(boolean enableTRScanCheck) {
        this.enableTRScanCheck = enableTRScanCheck;
    }

    public float getCoTax() {
        return coTax;
    }

    public void setCoTax(float coTax) {
        this.coTax = coTax;
    }

    public float getFedTax() {
        return fedTax;
    }

    public void setFedTax(float fedTax) {
        this.fedTax = fedTax;
    }

    public byte[] getHeaderImg() {
        return headerImg;
    }

    public void setHeaderImg(byte[] headerImg) {
        this.headerImg = headerImg;
    }

    public byte[] getFooterImg() {
        return footerImg;
    }

    public void setFooterImg(byte[] footerImg) {
        this.footerImg = footerImg;
    }

    public Employee getApEmp() {
        return apEmp;
    }

    public void setApEmp(Employee apEmp) {
        if(apEmp.getEmpID()!=null){
            this.apEmp = apEmp;
        }
    }

    public Customer getTrCust() {
        return trCust;
    }

    public void setTrCust(Customer trCust) {
        if(trCust.getCId()!=null){
            this.trCust = trCust;
        }
    }

    public String getKegPrefix() {
        return kegPrefix;
    }

    public void setKegPrefix(String kegPrefix) {
        this.kegPrefix = kegPrefix;
    }

    public boolean getBGoogleCal() {
        return bGoogleCal;
    }

    public void setBGoogleCal(boolean bGoogleCal) {
        this.bGoogleCal = bGoogleCal;
    }

    public boolean getBPlato() {
        return bPlato;
    }

    public void setBPlato(boolean bPlato) {
        this.bPlato = bPlato;
    }

    public boolean getBQAEnable() {
        return bQAEnable;
    }

    public void setBQAEnable(boolean bQAEnable) {
        this.bQAEnable = bQAEnable;
    }

    public List<LabType> getLabTypeCollection() {
        return labTypeCollection;
    }

    public void setLabTypeCollection(List<LabType> labTypeCollection) {
        this.labTypeCollection = labTypeCollection;
    }

    public List<CommonBrewSupplies> getCbsCollection() {
        return cbsCollection;
    }

    public void setCbsCollection(List<CommonBrewSupplies> cbsCollection) {
        this.cbsCollection = cbsCollection;
    }

    public boolean isbPOS() {
        return bPOS;
    }

    public void setbPOS(boolean bPOS) {
        this.bPOS = bPOS;
    }

    public float getSystemSize() {
        return systemSize;
    }

    public void setSystemSize(float systemSize) {
        this.systemSize = systemSize;
    }

    public float getDistKegDeposit() {
        return distKegDeposit;
    }

    public void setDistKegDeposit(float distKegDeposit) {
        this.distKegDeposit = distKegDeposit;
    }

    public float getNonDistKegDeposit() {
        return nonDistKegDeposit;
    }

    public void setNonDistKegDeposit(float nonDistKegDeposit) {
        this.nonDistKegDeposit = nonDistKegDeposit;
    }

    public float getCa() {
        return ca;
    }

    public void setCa(float ca) {
        this.ca = ca;
    }

    public float getMg() {
        return mg;
    }

    public void setMg(float mg) {
        this.mg = mg;
    }

    public float getNa() {
        return na;
    }

    public void setNa(float na) {
        this.na = na;
    }

    public float getSo4() {
        return so4;
    }

    public void setSo4(float so4) {
        this.so4 = so4;
    }

    public float getCl() {
        return cl;
    }

    public void setCl(float cl) {
        this.cl = cl;
    }

    public float getCo3() {
        return co3;
    }

    public void setCo3(float co3) {
        this.co3 = co3;
    }

    public int getDaysForPO() {
        return daysForPO;
    }

    public void setDaysForPO(int daysForPO) {
        this.daysForPO = daysForPO;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aNum != null ? aNum.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Administration)) {
            return false;
        }
        Administration other = (Administration) object;
        if ((this.aNum == null && other.aNum != null) || (this.aNum != null && !this.aNum.equals(other.aNum))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.openbrew.openbrewrf.Administration[ aNum=" + aNum + " ]";
    }
    
    public String decryptBillingEmailPassword(){
        String decrypted = Encrypter.NAGASAKTI.decrypt(this.billingEmailPass);
        return decrypted;
    }
    
}
